home *** CD-ROM | disk | FTP | other *** search
/ 3D World 115 / 3DW_115.iso / DiscContent / Tutorial Files / Compositing Tips / data / Scene files / blackLevels.nk next >
Text File  |  2009-01-29  |  7KB  |  436 lines

  1. set cut_paste_input [stack 0]
  2. version 4.8200
  3. push 0
  4. push $cut_paste_input
  5. Group {
  6.  inputs 2
  7.  name blackLevels
  8.  tile_color 0x7aa9ff00
  9.  note_font 1
  10.  note_font_size 16
  11.  selected true
  12.  xpos 116
  13.  ypos -129
  14.  help "Adjusts black levels using mattes generated from RGB channels. Accepts an input matte to control the area of effect. Node courtesy of Matthew Doll. www.matthewdoll.com mattdoll@gmail.com"
  15.  addUserKnob {20 user l "Black Levels"}
  16.  addUserKnob {26 "" l Description: T "This node will adjust your black levels with a soft falloff towards the pin point you choose."}
  17.  addUserKnob {6 premulted l "Already Un-Premulted?" t "This node automatically unpremults and re-premults. Please check this radio button if you are feeding in an unpremulted image."}
  18.  addUserKnob {26 "" l ""}
  19.  addUserKnob {18 overallAdjust l "Black Point" t "Choose what value black will become." R -1 1}
  20.  overallAdjust {0 0 0}
  21.  addUserKnob {18 pinPoint l Pin t "Adjust this to where you want your color values to be unaffected." R -1 1}
  22.  pinPoint 0.1
  23.  addUserKnob {26 "" l ""}
  24.  addUserKnob {7 rFall l "Red Falloff" t "Adjust the falloff of the red channel." R -1 5}
  25.  addUserKnob {7 gFall l "Green Falloff" t "Adjust how soft the green falloff is in your black adjust." R -1 5}
  26.  addUserKnob {7 bFall l "Blue Falloff" t "Adjust how soft the blue falloff is in your black adjust." R -1 5}
  27.  addUserKnob {26 "" l ""}
  28.  addUserKnob {7 rHard l "Red Hardness" t "Adjust softness of blacks."}
  29.  addUserKnob {7 gHard l "Green Hardness" t "Adjust softness of blacks."}
  30.  addUserKnob {7 bHard l "Blue Hardness" t "Adjust softness of blacks."}
  31.  addUserKnob {26 "" l ""}
  32.  addUserKnob {7 mixX l Mix:}
  33.  mixX 1
  34.  addUserKnob {6 previewBlacks l "Preview Black Areas" t "Check this box if you would like to see that mattes of your black adjust areas."}
  35. }
  36.  Input {
  37.   inputs 0
  38.   name in
  39.   xpos -210
  40.   ypos -20
  41.  }
  42. set N7d2f180 [stack 0]
  43.  Dot {
  44.   name Dot1
  45.   xpos 752
  46.   ypos -16
  47.  }
  48. add_layer {alpha rgba.alpha}
  49.  Remove {
  50.   operation keep
  51.   channels alpha
  52.   name Remove2
  53.   xpos 718
  54.   ypos 1602
  55.  }
  56.  Clamp {
  57.   minimum 1
  58.   name Clamp1
  59.   xpos 718
  60.   ypos 1642
  61.  }
  62.  Input {
  63.   inputs 0
  64.   name matte
  65.   xpos 166
  66.   ypos 1521
  67.   number 1
  68.  }
  69.  Invert {
  70.   name Invert4
  71.   xpos 166
  72.   ypos 1547
  73.  }
  74.  Merge2 {
  75.   inputs 2
  76.   operation out
  77.   name Multiply
  78.   xpos 166
  79.   ypos 1649
  80.  }
  81. push $N7d2f180
  82. push $N7d2f180
  83.  Unpremult {
  84.   name Unpremult1
  85.   xpos -308
  86.   ypos 35
  87.  }
  88.  Switch {
  89.   inputs 2
  90.   which {{parent.premulted}}
  91.   name Switch2
  92.   xpos -210
  93.   ypos 86
  94.  }
  95.  Dot {
  96.   name Dot8
  97.   xpos -176
  98.   ypos 155
  99.  }
  100. set N7d5b838 [stack 0]
  101.  Dot {
  102.   name Dot2
  103.   xpos 198
  104.   ypos 155
  105.  }
  106.  Shuffle {
  107.   red blue
  108.   out alpha
  109.   name Shuffle6
  110.   label blue
  111.   xpos 164
  112.   ypos 215
  113.  }
  114.  Dot {
  115.   name Dot3
  116.   xpos 198
  117.   ypos 347
  118.  }
  119. set N7d5d500 [stack 0]
  120.  Grade {
  121.   channels alpha
  122.   blackpoint {{"parent.bHard * parent.pinPoint.b"}}
  123.   whitepoint {{parent.pinPoint.b}}
  124.   gamma {{"1 + parent.bFall"}}
  125.   white_clamp true
  126.   name Grade4
  127.   xpos 329
  128.   ypos 336
  129.  }
  130.  Invert {
  131.   channels alpha
  132.   name Invert1
  133.   xpos 329
  134.   ypos 384
  135.  }
  136. set N7d5ef78 [stack 0]
  137.  Dot {
  138.   name Dot4
  139.   xpos 533
  140.   ypos 395
  141.  }
  142.  Dot {
  143.   name Dot6
  144.   xpos 533
  145.   ypos 1365
  146.  }
  147. push $N7d5b838
  148.  Shuffle {
  149.   red green
  150.   out alpha
  151.   name Shuffle5
  152.   label green
  153.   xpos -210
  154.   ypos 218
  155.  }
  156.  Dot {
  157.   name Dot5
  158.   xpos -176
  159.   ypos 354
  160.  }
  161. set N7d61c08 [stack 0]
  162.  Grade {
  163.   channels alpha
  164.   blackpoint {{"parent.gHard * parent.pinPoint.g"}}
  165.   whitepoint {{parent.pinPoint.g}}
  166.   gamma {{"1 + parent.gFall"}}
  167.   white_clamp true
  168.   name Grade1
  169.   xpos -45
  170.   ypos 343
  171.  }
  172.  Invert {
  173.   channels alpha
  174.   name Invert2
  175.   xpos -45
  176.   ypos 391
  177.  }
  178. set N7d639b0 [stack 0]
  179.  Dot {
  180.   name Dot7
  181.   xpos -11
  182.   ypos 1254
  183.  }
  184. push $N7d5b838
  185.  Dot {
  186.   name Dot9
  187.   xpos -482
  188.   ypos 155
  189.  }
  190. set N7d651e0 [stack 0]
  191.  Shuffle {
  192.   out alpha
  193.   name Shuffle4
  194.   label red
  195.   xpos -516
  196.   ypos 220
  197.  }
  198.  Dot {
  199.   name Dot10
  200.   xpos -482
  201.   ypos 352
  202.  }
  203. set N7d66ab8 [stack 0]
  204.  Grade {
  205.   channels alpha
  206.   blackpoint {{"parent.rHard * parent.pinPoint.r"}}
  207.   whitepoint {{parent.pinPoint.r}}
  208.   gamma {{"1 + parent.rFall"}}
  209.   white_clamp true
  210.   name Grade5
  211.   xpos -351
  212.   ypos 341
  213.  }
  214.  Invert {
  215.   channels alpha
  216.   name Invert3
  217.   xpos -351
  218.   ypos 389
  219.  }
  220. set N7d687b0 [stack 0]
  221.  Dot {
  222.   name Dot11
  223.   xpos -317
  224.   ypos 644
  225.  }
  226.  Dot {
  227.   name Dot12
  228.   xpos 339
  229.   ypos 644
  230.  }
  231.  Shuffle {
  232.   red alpha
  233.   out rgb
  234.   name Shuffle2
  235.   xpos 305
  236.   ypos 1166
  237.  }
  238.  Copy {
  239.   inputs 2
  240.   from0 rgba.alpha
  241.   to0 rgba.green
  242.   name Copy5
  243.   xpos 305
  244.   ypos 1243
  245.  }
  246.  Copy {
  247.   inputs 2
  248.   from0 rgba.alpha
  249.   to0 rgba.blue
  250.   name Copy8
  251.   xpos 305
  252.   ypos 1354
  253.  }
  254. push $N7d651e0
  255.  Dot {
  256.   name Dot13
  257.   xpos -605
  258.   ypos 155
  259.  }
  260.  Dot {
  261.   name Dot14
  262.   xpos -605
  263.   ypos 1139
  264.  }
  265. push $N7d5ef78
  266. push $N7d5d500
  267.  Copy {
  268.   inputs 2
  269.   from0 rgba.alpha
  270.   to0 depth.Z
  271.   name Copy2
  272.   xpos 164
  273.   ypos 384
  274.  }
  275.  Grade {
  276.   channels alpha
  277.   black {{parent.overallAdjust.b}}
  278.   mask depth.Z
  279.   name Grade2
  280.   xpos 164
  281.   ypos 424
  282.  }
  283.  Dot {
  284.   name Dot15
  285.   xpos 198
  286.   ypos 1073
  287.  }
  288. push $N7d639b0
  289. push $N7d61c08
  290.  Copy {
  291.   inputs 2
  292.   from0 rgba.alpha
  293.   to0 depth.Z
  294.   name Copy3
  295.   xpos -210
  296.   ypos 391
  297.  }
  298.  Grade {
  299.   channels alpha
  300.   black {{parent.overallAdjust.g}}
  301.   mask depth.Z
  302.   name Grade3
  303.   xpos -210
  304.   ypos 431
  305.  }
  306. push $N7d687b0
  307. push $N7d66ab8
  308.  Copy {
  309.   inputs 2
  310.   from0 rgba.alpha
  311.   to0 depth.Z
  312.   name Copy4
  313.   xpos -516
  314.   ypos 389
  315.  }
  316.  Grade {
  317.   channels alpha
  318.   black {{parent.overallAdjust.r}}
  319.   mask depth.Z
  320.   name Grade6
  321.   xpos -516
  322.   ypos 429
  323.  }
  324.  Dot {
  325.   name Dot16
  326.   xpos -482
  327.   ypos 776
  328.  }
  329.  Shuffle {
  330.   red alpha
  331.   out rgb
  332.   name Shuffle1
  333.   xpos -432
  334.   ypos 772
  335.  }
  336.  Copy {
  337.   inputs 2
  338.   from0 rgba.alpha
  339.   to0 rgba.green
  340.   name Copy6
  341.   xpos -210
  342.   ypos 765
  343.  }
  344.  Copy {
  345.   inputs 2
  346.   from0 rgba.alpha
  347.   to0 rgba.blue
  348.   name Copy7
  349.   xpos -210
  350.   ypos 1062
  351.  }
  352.  Copy {
  353.   inputs 2
  354.   from0 rgba.alpha
  355.   to0 rgba.alpha
  356.   name Copy1
  357.   xpos -210
  358.   ypos 1128
  359.  }
  360. set N7d7a4f0 [stack 0]
  361. push $N7d7a4f0
  362.  Premult {
  363.   name Premult1
  364.   xpos -287
  365.   ypos 1200
  366.  }
  367.  Switch {
  368.   inputs 2
  369.   which {{parent.premulted}}
  370.   name Switch3
  371.   xpos -210
  372.   ypos 1261
  373.  }
  374.  Switch {
  375.   inputs 2
  376.   which {{parent.previewBlacks}}
  377.   name Switch1
  378.   xpos -210
  379.   ypos 1361
  380.  }
  381. push $N7d2f180
  382.  Dot {
  383.   name Dot17
  384.   xpos -758
  385.   ypos -16
  386.  }
  387.  Dot {
  388.   name Dot18
  389.   xpos -758
  390.   ypos 1501
  391.  }
  392. set N7d7e0e8 [stack 0]
  393.  Dissolve {
  394.   inputs 2
  395.   which {{parent.mixX}}
  396.   name Dissolve1
  397.   xpos -210
  398.   ypos 1490
  399.  }
  400. push $N7d7e0e8
  401.  Dot {
  402.   name Dot19
  403.   xpos -758
  404.   ypos 1653
  405.  }
  406.  Keymix {
  407.   inputs 3
  408.   name Keymix1
  409.   xpos -210
  410.   ypos 1642
  411.  }
  412.  Output {
  413.   name Output1
  414.   xpos -210
  415.   ypos 1804
  416.  }
  417.  Constant {
  418.   inputs 0
  419.   channels alpha
  420.   color 1
  421.   name Constant1
  422.   xpos 838
  423.   ypos 1596
  424.  }
  425.  StickyNote {
  426.   inputs 0
  427.   name StickyNote1
  428.   label "Node courtesy of mattdoll@gmail.com"
  429.   note_font 1
  430.   note_font_size 25
  431.   selected true
  432.   xpos 88
  433.   ypos 1754
  434.  }
  435. end_group
  436.